Optimal. Leaf size=80 \[ -\frac{a+b \tanh ^{-1}(c x)}{3 c (c x+1)^3}-\frac{b}{24 c (c x+1)}-\frac{b}{24 c (c x+1)^2}-\frac{b}{18 c (c x+1)^3}+\frac{b \tanh ^{-1}(c x)}{24 c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.053593, antiderivative size = 80, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {5926, 627, 44, 207} \[ -\frac{a+b \tanh ^{-1}(c x)}{3 c (c x+1)^3}-\frac{b}{24 c (c x+1)}-\frac{b}{24 c (c x+1)^2}-\frac{b}{18 c (c x+1)^3}+\frac{b \tanh ^{-1}(c x)}{24 c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5926
Rule 627
Rule 44
Rule 207
Rubi steps
\begin{align*} \int \frac{a+b \tanh ^{-1}(c x)}{(1+c x)^4} \, dx &=-\frac{a+b \tanh ^{-1}(c x)}{3 c (1+c x)^3}+\frac{1}{3} b \int \frac{1}{(1+c x)^3 \left (1-c^2 x^2\right )} \, dx\\ &=-\frac{a+b \tanh ^{-1}(c x)}{3 c (1+c x)^3}+\frac{1}{3} b \int \frac{1}{(1-c x) (1+c x)^4} \, dx\\ &=-\frac{a+b \tanh ^{-1}(c x)}{3 c (1+c x)^3}+\frac{1}{3} b \int \left (\frac{1}{2 (1+c x)^4}+\frac{1}{4 (1+c x)^3}+\frac{1}{8 (1+c x)^2}-\frac{1}{8 \left (-1+c^2 x^2\right )}\right ) \, dx\\ &=-\frac{b}{18 c (1+c x)^3}-\frac{b}{24 c (1+c x)^2}-\frac{b}{24 c (1+c x)}-\frac{a+b \tanh ^{-1}(c x)}{3 c (1+c x)^3}-\frac{1}{24} b \int \frac{1}{-1+c^2 x^2} \, dx\\ &=-\frac{b}{18 c (1+c x)^3}-\frac{b}{24 c (1+c x)^2}-\frac{b}{24 c (1+c x)}+\frac{b \tanh ^{-1}(c x)}{24 c}-\frac{a+b \tanh ^{-1}(c x)}{3 c (1+c x)^3}\\ \end{align*}
Mathematica [A] time = 0.105182, size = 75, normalized size = 0.94 \[ -\frac{48 a+2 b \left (3 c^2 x^2+9 c x+10\right )+3 b (c x+1)^3 \log (1-c x)-3 b (c x+1)^3 \log (c x+1)+48 b \tanh ^{-1}(c x)}{144 c (c x+1)^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.034, size = 95, normalized size = 1.2 \begin{align*} -{\frac{a}{3\,c \left ( cx+1 \right ) ^{3}}}-{\frac{b{\it Artanh} \left ( cx \right ) }{3\,c \left ( cx+1 \right ) ^{3}}}-{\frac{b\ln \left ( cx-1 \right ) }{48\,c}}-{\frac{b}{18\,c \left ( cx+1 \right ) ^{3}}}-{\frac{b}{24\,c \left ( cx+1 \right ) ^{2}}}-{\frac{b}{24\,c \left ( cx+1 \right ) }}+{\frac{b\ln \left ( cx+1 \right ) }{48\,c}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.973127, size = 178, normalized size = 2.22 \begin{align*} -\frac{1}{144} \,{\left (c{\left (\frac{2 \,{\left (3 \, c^{2} x^{2} + 9 \, c x + 10\right )}}{c^{5} x^{3} + 3 \, c^{4} x^{2} + 3 \, c^{3} x + c^{2}} - \frac{3 \, \log \left (c x + 1\right )}{c^{2}} + \frac{3 \, \log \left (c x - 1\right )}{c^{2}}\right )} + \frac{48 \, \operatorname{artanh}\left (c x\right )}{c^{4} x^{3} + 3 \, c^{3} x^{2} + 3 \, c^{2} x + c}\right )} b - \frac{a}{3 \,{\left (c^{4} x^{3} + 3 \, c^{3} x^{2} + 3 \, c^{2} x + c\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.37688, size = 209, normalized size = 2.61 \begin{align*} -\frac{6 \, b c^{2} x^{2} + 18 \, b c x - 3 \,{\left (b c^{3} x^{3} + 3 \, b c^{2} x^{2} + 3 \, b c x - 7 \, b\right )} \log \left (-\frac{c x + 1}{c x - 1}\right ) + 48 \, a + 20 \, b}{144 \,{\left (c^{4} x^{3} + 3 \, c^{3} x^{2} + 3 \, c^{2} x + c\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 8.14961, size = 294, normalized size = 3.68 \begin{align*} \begin{cases} - \frac{24 a}{72 c^{4} x^{3} + 216 c^{3} x^{2} + 216 c^{2} x + 72 c} + \frac{3 b c^{3} x^{3} \operatorname{atanh}{\left (c x \right )}}{72 c^{4} x^{3} + 216 c^{3} x^{2} + 216 c^{2} x + 72 c} + \frac{9 b c^{2} x^{2} \operatorname{atanh}{\left (c x \right )}}{72 c^{4} x^{3} + 216 c^{3} x^{2} + 216 c^{2} x + 72 c} - \frac{3 b c^{2} x^{2}}{72 c^{4} x^{3} + 216 c^{3} x^{2} + 216 c^{2} x + 72 c} + \frac{9 b c x \operatorname{atanh}{\left (c x \right )}}{72 c^{4} x^{3} + 216 c^{3} x^{2} + 216 c^{2} x + 72 c} - \frac{9 b c x}{72 c^{4} x^{3} + 216 c^{3} x^{2} + 216 c^{2} x + 72 c} - \frac{21 b \operatorname{atanh}{\left (c x \right )}}{72 c^{4} x^{3} + 216 c^{3} x^{2} + 216 c^{2} x + 72 c} - \frac{10 b}{72 c^{4} x^{3} + 216 c^{3} x^{2} + 216 c^{2} x + 72 c} & \text{for}\: c \neq 0 \\a x & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.15987, size = 157, normalized size = 1.96 \begin{align*} \frac{b \log \left (c x + 1\right )}{48 \, c} - \frac{b \log \left (c x - 1\right )}{48 \, c} - \frac{b \log \left (-\frac{c x + 1}{c x - 1}\right )}{6 \,{\left (c^{4} x^{3} + 3 \, c^{3} x^{2} + 3 \, c^{2} x + c\right )}} - \frac{3 \, b c^{2} x^{2} + 9 \, b c x + 24 \, a + 10 \, b}{72 \,{\left (c^{4} x^{3} + 3 \, c^{3} x^{2} + 3 \, c^{2} x + c\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]